<?php
/* @var $this yii\web\View */
use app\models\PunishmentSearchForPerson;
use yii\grid\GridView;

$this->title='违纪处分情况';
$this->params['breadcrumbs'][] = $this->title;
?>
<h4>违纪处分情况</h4>

<?php    
    $searchModel = new PunishmentSearchForPerson($id);
    $dataProvider = $searchModel->search(\Yii::$app->request->queryParams); 
 ?>                  
 <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            //'id',
            'stu_id',
        		'name',
            'year',
            'semester'=>[
             		'attribute'=>'semester',
             		'filter'=>['1'=>'1','2'=>'2'],
             		
    ],
            'date',
             'situation',
             'rank',
             'filenum',
           
        ],
    ]); ?>
